#ifndef CCOLLISIONSYSTEM_H_
#define CCOLLISIONSYSTEM_H_

#include "subsystem.h"
#include "map.h"
#include "collisionbox.h"

class CCollisionSystem : public CSubSystem
{
	
	CEntity * m_pPlayerEntity;
	CMap * m_pGameMap;
	
public:
	
	
	CCollisionSystem( CEntityFactory * e ) : CSubSystem( e ), m_pPlayerEntity( NULL )
	{ }
	
	inline void SetPlayer( CEntity * p )
	{
		
		m_pPlayerEntity = p;
		
	}
	
	inline void SetGameMap( CMap * g )
	{
		
		m_pGameMap = g;
		
	}
	
	void HandleEntityCollision();
	void HandleMapCollision();
	
};

#endif
